package com.superhelp.ebill.util;

import android.content.Context;
import android.view.Gravity;
import android.widget.Toast;

/**
 * Created by Administrator on 2017/5/8.
 */
public class FFToast {

    private static Toast toast;

    public static FFToast makeText(Context context, CharSequence text, int duration) {
        FFToast result = new FFToast();
        toast = Toast.makeText(context,
                text, duration);
        toast.setGravity(Gravity.CENTER, 0, 0);
        toast.show();

        return result;
    }

    public void show(){
        toast.show();
    }
}
